home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 November
/
Pcwk1197.iso
/
LOTUS
/
Eng-ins
/
ACROREAD
/
SUITE
/
DW08_S6.APR
/
SCRIPT
/
ApproachDoc
/
Invoice - Main
/
Body
/
Invoice Number.s
(
.txt
)
< prev
next >
Wrap
Null Bytes Alternating
|
1996-10-27
|
2KB
|
24 lines
'++LotusScript Development Environment:2:5:(Options):0:66
'++LotusScript Development Environment:2:5:(Forward):0:1
Declare Sub Gotfocus(Source As Fieldbox)
'++LotusScript Development Environment:2:5:(Declarations):0:2
'++LotusScript Development Environment:2:2:BindEvents:1:129
Private Sub BindEvents(Byval Objectname_ As String)
Static Source As FIELDBOX
Set Source = Bind(Objectname_)
On Event Gotfocus From Source Call Gotfocus
End Sub
'++LotusScript Development Environment:2:2:Gotfocus:1:12
Sub Gotfocus(Source As Fieldbox)
Dim rev As Currency, expense As Currency, bal As Currency
rev@ = Ccur(Inputbox("How much did we make this month?"))
expense@ = Ccur(Inputbox("How much did we spend?"))
bal@ = rev@ - expense@
Messagebox "Our balance this month is "_
& Format(bal@, "Currency")
Source.text=Cstr(bal@)
End Sub